  <script>
	var price1 = 0;
	var price2 = 0;
	$(function(){
		$(".price:eq(0),.price:eq(1)").change(function(){
			$.ajax({
				url:"/merchant/index/caculate-sku-and-pallet",
				dataType:"json",
				type:"post",
				data:{"skus":$(".price:eq(1)").val(),"pallets":$(".price:eq(0)").val()},
				success:function(json){
					$(".price1").html("$"+json);
					price1 = json;
					var total = price1 + price2;
					$(".priceTotal").html("$"+total.toFixed(2));
				}
			});
		});
		$(".price:eq(2)").change(function(){
			$.ajax({
				url:"/merchant/index/caculate-item",
				dataType:"json",
				type:"post",
				data:{"items":$(".price:eq(2)").val()},
				success:function(json){
					$(".price2").html("$"+json);
					price2= json;
					var total = price1 + price2;
					$(".priceTotal").html("$"+total.toFixed(2));
				}
			});
		});
		<{if isset($selectPallet)}>
			$(".price:eq(0)").val("<{$selectPallet}>");
		<{/if}>
		<{if isset($selectSku)}>
			$(".price:eq(1)").val("<{$selectSku}>");
		<{/if}>
		<{if isset($selectItem)}>
			$(".price:eq(2)").val("<{$selectItem}>");
		<{/if}>
		$(".price:eq(1)").change();
		$(".price:eq(2)").change();
		
		
		$("[name=handleReturn]").click(function(){
			$(".submit").addClass("next-enabled");
			$(".submit").click(function(){
				var options = {
					url:"/merchant/index/register-step2",
					dataType:"text",
					type:"post",
					success:function(json){
						toLink("/merchant/index/step3");
					}
				};
				$("#step2Form").ajaxSubmit(options);
			});
		});
		
	});
	
  
  </script>
  <style>
	.font15{font-size:15px}
  </style>
  <h4>Continue Registration</h4>
  <br/>
  <div id="step" class="step-2">
                <ul>
                <li style="width:150px;">1: Further Information</li>
                <li style="width:200px;">2: Define your own services</li>
                <li style="width:100px">3: Successful</li>
                </ul>
                <div class="clearFloat"></div>
                </div>

		<div class="userinfo">
		<form id="step2Form">
                <p class="bold font15">1.Select a plan</P>
				<div class="userinfo">
                 <img src="/images/steps-1.gif" />
				<P>
				<p>
                 How much storage space will you need per month?<br/>
				 <select class="price" name="pallet">
					<{foreach from=$pallets item=pallet}>
						<option value="<{$pallet.range_end}>"><{$pallet.range_end}></option>
					<{/foreach}>
				 </select>Pallets<br/>
				  How many unique product IDs (SKUs) will you need?<br/>
				 <select class="price" name="sku">
				 <{foreach from=$skus item=sku}>
						<option value="<{$sku.range_end}>"><{$sku.range_end}></option>
					<{/foreach}>
				 </select>
				 </p>
                 <span class="total-price-box">Storage and Support:<span class="total-price price1"></span></span>
                 
                 </p>
                 <img src="/images/steps-2.gif" />
				 <p>
				 How many plan items will you be shipping or returning per month?<br/>
				 <select class="price" name="item">
					<{foreach from=$items item=item}>
						<option value="<{$item.range_end}>"><{$item.range_end}></option>
					<{/foreach}>
				 </select>
				 </p>
				
				<p>
                 <span class="total-price-box">Storage and Support:<span class="total-price price2"></span>&nbsp;&nbsp;</span>
				</p>
                 
                 
                 <p>
                 <span class="total-price-box">Total:<span class="total-price priceTotal"></span>&nbsp;&nbsp;</span>
				</p>
                 </div>
				<p class="bold font15">2.How should we handle the returns(including undeliverable and refused packages)?</p>
                <p><label><input type="radio" name="handleReturn" value="0"/> Dispose product immediately</label></p>
				<p><label><input type="radio" name="handleReturn" value="1"/> Inspect product visually.You here by agree the we make the final judgment of eighter displosing the product OR restocking it .Weare not responsible for any losses due to wrong judgment.Gennerally,products without original packaging are considered unsellabe and we dispose them.</label></p>
               <p class="text-center">
               <span class="submit next-disabled">Next</span>
               </p>
			   </form>
               </div>